package org.jeecg.modules.product.sign.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;

import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 签到规则
 * @Author: jeecg-boot
 * @Date:   2025-02-26
 * @Version: V1.0
 */
@Data
@TableName("tb_sign_rule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="签到规则")
public class TbSignRule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**工作日*/
	@Excel(name = "工作日", width = 15, dicCode = "workingDayType")
	@Dict(dicCode = "workingDayType")
    @Schema(description = "工作日")
    private String workingDay;
	/**上班时间*/
	@Excel(name = "上班时间", width = 15)
    @Schema(description = "上班时间")
    private String workingTime;
	/**上班迟到时间*/
	@Excel(name = "上班迟到时间", width = 15)
    @Schema(description = "上班迟到时间")
    private String workingLateTime;
	/**上班旷工时间*/
	@Excel(name = "上班旷工时间", width = 15)
    @Schema(description = "上班旷工时间")
    private String workingAbsenteeismTime;
	/**下班时间*/
	@Excel(name = "下班时间", width = 15)
    @Schema(description = "下班时间")
    private String offdutyTime;
	/**下班早退时间*/
	@Excel(name = "下班早退时间", width = 15)
    @Schema(description = "下班早退时间")
    private String earlyDepartureTime;
	/**定位中心经纬度*/
	@Excel(name = "定位中心经纬度", width = 15)
    @Schema(description = "定位中心经纬度")
    private String orientation;
	/**不参与打卡人员*/
	@Excel(name = "不参与打卡人员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "不参与打卡人员")
    private String dropOutMan;
	/**是否展示假期*/
	@Excel(name = "是否展示假期", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "是否展示假期")
    private String isShowHolidays;
	/**元旦假期开始时间*/
	@Excel(name = "元旦假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "元旦假期开始时间")
    private Date newYearDayStartDate;
	/**元旦假期结束时间*/
	@Excel(name = "元旦假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "元旦假期结束时间")
    private Date newYearDayEndDate;
	/**春节假期开始时间*/
	@Excel(name = "春节假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "春节假期开始时间")
    private Date springFestivalStartDate;
	/**春节假期结束时间*/
	@Excel(name = "春节假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "春节假期结束时间")
    private Date springFestivalEndDate;
	/**清明假期开始时间*/
	@Excel(name = "清明假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "清明假期开始时间")
    private Date qingmingStartDate;
	/**清明假期结束时间*/
	@Excel(name = "清明假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "清明假期结束时间")
    private Date qingmingEndDate;
	/**五一劳动节假期开始时间*/
	@Excel(name = "五一劳动节假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "五一劳动节假期开始时间")
    private Date mayDayStartDate;
	/**五一劳动节假期结束时间*/
	@Excel(name = "五一劳动节假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "五一劳动节假期结束时间")
    private Date mayDayEndDate;
	/**端午假期开始时间*/
	@Excel(name = "端午假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "端午假期开始时间")
    private Date dragonBoatFestivalStartDate;
	/**端午假期结束时间*/
	@Excel(name = "端午假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "端午假期结束时间")
    private Date dragonBoatFestivalEndDate;
	/**中秋假期开始时间*/
	@Excel(name = "中秋假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "中秋假期开始时间")
    private Date midAutumnFestivalStartDate;
	/**中秋假期结束时间*/
	@Excel(name = "中秋假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "中秋假期结束时间")
    private Date midAutumnFestivalEndDate;
	/**国庆假期开始时间*/
	@Excel(name = "国庆假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "国庆假期开始时间")
    private Date nationalDayStartDate;
	/**国庆假期结束时间*/
	@Excel(name = "国庆假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "国庆假期结束时间")
    private Date nationalDayEndDate;
	/**其他假期开始时间*/
	@Excel(name = "其他假期开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "其他假期开始时间")
    private Date otherStartDate;
	/**其他假期结束时间*/
	@Excel(name = "其他假期结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "其他假期结束时间")
    private Date otherEndDate;
}
